#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  text.py
#       Author @  Huoty
#  Create date @  2015-06-18 09:51:53
#  Description @  
# *************************************************************



# Script starts from here

fobj = open("test.txt")
print "当前文件指针位置：", fobj.tell()
print "文件是否关闭：", ("yes" if fobj.closed else "no")
print "文件编码：", fobj.encoding
print "文件打开模式：", fobj.mode
print "文件名：", fobj.name
fobj.close()
